class JueseTou {
  late List<JueSe> shuju;
  late String biaoti;
}

class JueseTi {
  late int code;
  late List<JueSe> shuju;
  late String xinxi;

  static JueseTi fromMap(Map<String, dynamic> map) {
    JueseTi completionEntityBean = JueseTi();
    completionEntityBean.code = map['code'];
    completionEntityBean.shuju = []
      ..addAll((map['data'] as List ?? []).map((o) => JueSe.fromMap(o)));
    completionEntityBean.xinxi = map['message'];
    return completionEntityBean;
  }

  Map toJson() => {
        "code": code,
        "data": shuju,
        "message": xinxi,
      };
}

class JueSe {
  late String huida;
  late String baoming;
  late String fenlei;
  late String tupian;
  late int createTime;
  late String shili;
  late String tishibiaoti;
  late int id;
  late String tiaozhuanTou;
  late int shuzi;
  late String tishici;
  late String fubiaoti;
  late String biaoti;
  late int type;
  late String shuliang;

  static JueSe fromMap(Map<String, dynamic> map) {
    JueSe dataBean = JueSe();
    dataBean.huida = map['answer'];
    dataBean.baoming = map['bid'];
    dataBean.fenlei = map['category'];
    dataBean.tupian = map['cover'];
    dataBean.createTime = map['createTime'];
    dataBean.shili = map['example'];
    dataBean.tishibiaoti = map['hintTitle'];
    dataBean.id = map['id'];
    dataBean.tiaozhuanTou = map['jumpTitle'];
    dataBean.shuzi = map['number'];
    dataBean.tishici = map['prompt'];
    dataBean.fubiaoti = map['subTitle'];
    dataBean.biaoti = map['title'];
    dataBean.type = map['type'];
    dataBean.shuliang = map['users'];
    return dataBean;
  }

  Map toJson() => {
        "answer": huida,
        "bid": baoming,
        "category": fenlei,
        "cover": tupian,
        "createTime": createTime,
        "example": shili,
        "hintTitle": tishibiaoti,
        "id": id,
        "jumpTitle": tiaozhuanTou,
        "number": shuzi,
        "prompt": tishici,
        "subTitle": fubiaoti,
        "title": biaoti,
        "type": type,
        "users": shuliang,
      };
}
